package cn.iocoder.yudao.module.im.controller.admin.member.vo;

import lombok.*;
import java.util.*;
import io.swagger.v3.oas.annotations.media.Schema;
import cn.iocoder.yudao.framework.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - IM消息分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class MemberMessagePageReqVO extends PageParam {

    @Schema(description = "分组ID", example = "32631")
    private Long groupId;

    @Schema(description = "发送人编号", example = "5906")
    private Long sendUserId;

    @Schema(description = "接收人编号", example = "21717")
    private Long receiveUserId;

    @Schema(description = "消息类型", example = "1")
    private Integer contentType;

    @Schema(description = "消息")
    private String content;

    @Schema(description = "语音时长")
    private Integer voiceSec;

    @Schema(description = "图片宽度")
    private Integer imgWidth;

    @Schema(description = "图片高度")
    private Integer imgHeight;

    @Schema(description = "是否已读", example = "2")
    private Boolean readStatus;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}